package com.minova.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 商品收藏表
 * </p>
 *
 * @author linrongji
 * @since 2019-12-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class TzProdFavorite extends Model<TzProdFavorite> {

    private static final long serialVersionUID=1L;

    /**
     * 主键
     */
    @TableId(value = "favorite_id", type = IdType.AUTO)
    private Long favoriteId;

    /**
     * 商品ID
     */
    private Long prodId;

    /**
     * 收藏时间
     */
    private LocalDateTime recTime;

    /**
     * 用户ID
     */
    private String userId;


    @Override
    protected Serializable pkVal() {
        return this.favoriteId;
    }

}
